import request from '@/utils/request'

// 获取我的申请列表
export function getMyApplications(params) {
  const { page = 0, size = 10, status } = params || {}
  return request({
    url: '/api/student/jobs/applications',
    method: 'get',
    params: {
      page,
      size,
      status
    }
  })
}

// 取消申请
export function cancelApplication(id) {
  return request({
    url: `/api/student/jobs/applications/${id}/cancel`,
    method: 'post'
  })
} 